Skip to content

Fix install script kill bug#52

Merged
nathanjcochran merged 1 commit intomainfrom
nathan/fix-install-script-kill-bug
Oct 9, 2025
Merged

Fix install script kill bug#52
nathanjcochran merged 1 commit intomainfrom
nathan/fix-install-script-kill-bug

Conversation

@nathanjcochran
Copy link
Member

@nathanjcochran nathanjcochran commented Oct 9, 2025

See Slack thread for background.

There was a bug in the install.sh script, where if you were currently running the tiger binary (most commonly when running the MCP server via an AI tool like Claude Code), then when the script swapped it out for the new binary, the operating system would immediately kill future invocations of the command until all of the existing invocations of the old binary were finished running. This PR fixes it by first removing the old binary with rm -f before swapping the new binary into place (fwiw, I don't fully understand what the underlying issue is or why this fixes it, but it does, based on my testing).

Closes AGE-209

How to Test

  1. Install the CLI via the install.sh script if you haven't already: sh ./scripts/install.sh
    • Make sure the first tiger command in your $PATH is the one installed via the script: which tiger (should print ~/.local/bin/tiger or ~/bin/tiger). If it's not, uninstall the other binaries or update your $PATH.
  2. Install the MCP server into Claude Code: tiger mcp install claude-code
  3. Open Claude Code in a separate terminal and leave it running: claude.
  4. Run the install script to install a new version of the binary: sh ./scripts/install.sh
  5. Run tiger version

Previously, the last step (running tiger version) would fail immediately with an error saying it had been killed (you could fix it either by closing the Claude Code session, or manually removing the binary and re-installing). After this PR, the command should execute like normal.

@nathanjcochran nathanjcochran self-assigned this Oct 9, 2025
Copy link
Contributor

@jgpruitt jgpruitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified

@nathanjcochran nathanjcochran merged commit f573d1f into main Oct 9, 2025
2 of 3 checks passed
@nathanjcochran nathanjcochran deleted the nathan/fix-install-script-kill-bug branch October 9, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants